
    //% color="#00ff00" iconWidth=50 iconHeight=40
    namespace eivision{
        
    //% block="获取当前画面并推理一次" blockType="command"
    export function myBlock2(parameter: any, block: any) {
        Generator.addInclude("myBlock9738",`#include "edgeImpulse_vision.h"`)
        Generator.addObject("myBlock910",`edgelmpulse_vision edfelmpulse;
sEdgeData Data;`,"")
        Generator.addCode(`edfelmpulse.request();`)
    }
    //% block="检测到目标物体？" blockType="boolean"
    export function myBlock3(parameter: any, block: any) {
        Generator.addCode(`edfelmpulse.isObjectDetection()`)
    }
    //% block="获取推理结果并储存" blockType="command"
    export function myBlock4(parameter: any, block: any) {
        Generator.addCode(`edfelmpulse.getdata(&Data);`)
    }
    //% block="EdgeImpulse结果中获取[k]" blockType="reporter"
    //% k.shadow="dropdown" k.options="k" 
    export function myBlock5(parameter: any, block: any) {
        let k= parameter.k.code
        Generator.addCode(`Data.${k}`)
    }
    }
    